#include <QApplication>
#include <QDialog>
#include <QPushButton>
#include <QCheckBox>
#include <QLabel>
#include <QVBoxLayout>
#include <QHBoxLayout>


int main(int c, char **v)
{
  QApplication app(c, v);  
  QDialog d(NULL);
  QHBoxLayout *bighlay = new QHBoxLayout();
  QVBoxLayout *vlay = new QVBoxLayout();
  QHBoxLayout *hlay = new QHBoxLayout();

  bighlay->addWidget(new QLabel("I'm a long silly label, la-la-la-la-la.", &d));
  vlay->addWidget(new QLabel("============Header============", &d));
  hlay->addWidget(new QPushButton("Hello World!", &d));
  hlay->addItem(new QSpacerItem(200, 20, QSizePolicy::Maximum));
  hlay->addWidget(new QCheckBox("Check me!", &d));
  vlay->addItem(hlay);
  vlay->addWidget(new QLabel("============Footer============", &d));
  bighlay->addItem(vlay);
  
  d.setLayout(bighlay);
  d.show();
  
  return app.exec();
}
